<?php
/**
 * *
 *  * ============================================================================
 *  * Created by PhpStorm.
 *  * User: Ice
 *  * 邮箱: ice@sbing.vip
 *  * 网址: https://sbing.vip
 *  * Date: 2019/9/20 下午5:19
 *  * ============================================================================.
 */

namespace app\common\service;

use think\Service;

/**
 * 插件服务
 */
class RedisMake extends Service
{
    public static function getRedis(){
        $redis = new \Redis();
        $redis->connect(config("redis.host")?:"127.0.0.1", config("redis.port")?:"6579");
        return $redis;
    }
}
